/*    file: CRtpFileWriter.h
 *    desc:
 *   
 * created: 2017-04-15
 *  author: chuanjiang.zh@qq.com
 * company: 
 */ 


#if !defined CRTPFILEWRITER_H_
#define CRTPFILEWRITER_H_

#include "RtpFileWriter.h"
#include <stdio.h>


class CRtpFileWriter : public RtpFileWriter
{
public:
	CRtpFileWriter();
	~CRtpFileWriter();

	virtual bool open(const char* filename);

	virtual void close();

	virtual bool isOpen();

	virtual bool write(unsigned char* buffer, int length, uint32_t timestamp, bool marker);

	bool setFile(const char* filepath);

protected:
	FILE*	m_file;


};


#endif //CRTPFILEWRITER_H_

